package org.linuxsogood.boot.test;

/**
 * @author honway.liu
 * @date 2019-07-20 16:51
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
public class F {
    private static int a = 1;
    private static String b;
    private String initValue = initMethod();

    static {
        System.out.println("F static");
    }

    public F() {
        System.out.println("F construct");
    }

    private String initMethod() {
        System.out.println("F init method");
        return "a";
    }
}

class S extends F {
    private static int a = 10;
    private static String b;
    private String initValue = initMethod();

    public S() {
        System.out.println("S construct.");
    }

    public String initMethod() {
        System.out.println("S init method");
        return "s";
    }

    static {
        System.out.println("S static.");
    }

    public static void main(String[] args) {
        S s = new S();
    }

}

